package com.xq.jltx.kotlinlearn09

/**
 * @author aidenquan
 *         Created by junlintianxia on 2022/07/28.
 */
fun main() {
    a(::b)
    a(fun(param: Int): String {
        return param.toString()
    })
    a1(Runnable { println("run") })

}

fun b(param: Int): String {
    return param.toString()
}

fun a(fParam: (Int) -> String): String {
    return fParam(1)
}

fun a1(run: Runnable) {
    run.run()
}

fun c(p: Int) {

}



